package top.xana.acg.anime.decoder

import android.content.Context
import com.android.iplayer.media.MediaFactory

/**
 * @author xana
 * @date 2023/4/1 0001 17:43
 * @email cv4096@qq.com
 **/

class AliPlayerFactory private constructor() : MediaFactory<AliPlayer?>() {
    companion object {
        const val TAG = "AliPlayerFactory"

        @JvmStatic
        fun create() = AliPlayerFactory()
    }

    override fun createPlayer(context: Context?): AliPlayer? {
        context ?: return null
        return AliPlayer(context)
    }
}